//
//  InputView.h
//  DoingPaper
//
//  Created by zhuxuhong on 16/8/2.
//  Copyright © 2016年 zhuxuhong. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol InputViewDelegate <NSObject>

@optional
-(void)inputViewDidClickedReturnButton; //按下回车键
-(void)inputViewDidEndInputingWithText: (NSString*)inputedText; //输入结束

@end

@interface InputView : UIView

@property(nonatomic,weak)id<InputViewDelegate> delegate;

-(instancetype)initWithFrame:(CGRect)frame
                    delegate: (id)delegate
                 placeholder: (NSString*)placeText
               returnKeyType: (UIReturnKeyType)keyType;

-(NSString*)getInputedText;
-(void)setInputedText: (NSString*)text;
-(void)setInputable:(BOOL)inputable; // 是否可以编辑

@end


